<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>

<center>
<h1>Discipline list</h1>

<table border="1">
	<tr>
		<th>full name</th>
		<th>short name</th>
	</tr>
	<c:forEach var="discipline" items="${disciplines}">
		<tr>
			<td><a href="disciplineView.htm?id=${discipline.id}"><c:out value="${discipline.fullName}" /></a></td>
            <td><a href="disciplineView.htm?id=${discipline.id}"><c:out value="${discipline.shortName}" /></a></td>
            <td><a href="<c:url value="disciplineDelete.htm?id=${discipline.id}"/>">Delete</a></td>
        </tr>
	</c:forEach>
</table>

<a href="disciplineEdit.htm">Create a disciplines</a>

</center>

